package zoo_management_system.animal;

import zoo_management_system.animal.Animal;

//陆生动物
public class TerrestrialAnimals extends Animal {

    public TerrestrialAnimals(String name, int age) {
        super(name, age);
    }

    public TerrestrialAnimals() {
    }

    public void action(){
        System.out.println(this.getAge()+"岁的陆生生物"+this.getName()+"在陆地上跑");
    }
}
